#include "TcpServer.hpp"
#include <memory>
#include "CommandExec.cpp"

int main()
{
    ENABLE_CONSOLE_LOG();

    // std::unique_ptr<TcpServer> tsvr = std::make_unique<TcpServer>();

    Command cmd;
    std::unique_ptr<TcpServer> tsvr = std::make_unique<TcpServer>([&cmd](std::string cmdstr){
        return cmd.Execute(cmdstr);
    });


    tsvr->InitServer();
    tsvr->start();
    return 0;
}